﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="advice.aspx.cs" Inherits="advice" %>

<%@ Register Src="UserControl/Witness.ascx" TagName="Witness" TagPrefix="Left" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="In-Table-DownLine">
    <div id="AllTitie-Table"><img src="image/title05.png" width="322" height="81" /></div>
    <left:Witness ID="leftWitness" runat="server" />    
    <div id="Show-Table">
      <h1 class="All-Stitle-H1">線上諮詢<span class="Pon">首頁&gt;線上諮詢</span></h1>
      <div id="advice">
        <asp:Panel ID="PanelUI" runat="server">
        <table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>姓　　名：</td>
            <td>
                <asp:TextBox ID="txtCreateName" runat="server" CssClass="order-01" size="20"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="請輸入姓名"
                  ControlToValidate="txtCreateName" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td>性　　別：　</td>
            <td>
                <asp:RadioButtonList ID="rdoSex" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Text="男　　" Value="男"></asp:ListItem>
                    <asp:ListItem Text="女" Value="女"></asp:ListItem></asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="請選擇性別"
                  ControlToValidate="rdoSex" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td>行動電話：</td>
            <td>
                <asp:TextBox ID="txtMobile" runat="server" CssClass="order-01" size="36"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="請輸入行動電話"
                  ControlToValidate="txtMobile" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td>信　　箱：</td>
            <td>
                <asp:TextBox ID="txtEMail" runat="server" CssClass="order-01" size="36"></asp:TextBox>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="請輸入信箱"
                  ControlToValidate="txtEmail" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ValidationGroup="Save" ErrorMessage="信箱格式不正確"
                  Display="None" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>            
            </td>
          </tr>
          <tr>
            <td>主　　旨：</td>
            <td>
                <asp:TextBox ID="txtMessageTitle" runat="server" CssClass="order-01" size="56"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="請輸入主旨"
                  ControlToValidate="txtMessageTitle" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td valign="top">問題內容：</td>
            <td>
            <asp:TextBox ID="txtContent" runat="server" width="400px" rows="6" cols="55" CssClass="order-01" TextMode="MultiLine"></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="請輸入問題內容"
                  ControlToValidate="txtContent" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td valign="top">驗證碼：</td>
            <td>
                <asp:TextBox ID="txtConfirmationCode" runat="server" CssClass="order-01" size="5"></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="請輸入驗證碼"
                  ControlToValidate="txtConfirmationCode" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
                <img id="safecode" src="admin/captcha/Handler.ashx" width="50" height="25" />
            </td>
          </tr>
          <tr>
            <td height="64" colspan="2" align="right" valign="bottom">
            <asp:ImageButton ID="btnSend" runat="server" onclick="btnSend_Click" ImageUrl="image/btn06.png" Width="67" Height="24" ValidationGroup="Save"/>
            　<a href="advice.aspx"><img src="image/btn07.png" width="67" height="24" /></a></td>
          </tr>
        </table>
        </asp:Panel>
        <br />
      </div>
    </div>
  </div>
  <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Save" 
        ShowMessageBox="True" ShowSummary="False"/> 
</asp:Content>

